06. Exercise: Project Tour
L3 06 Project Tour HS-SC
1. The Starter Code for Trivia App
In this lesson, you'll be working with the Android Trivia app. You'll be responsible for wiring together all of the app's navigation, including buttons, a menu, a navigation drawer and more. Because this lesson focuses on navigation, it helps to have a few pre-built fragments to navigate between. We've built these for you in the starter code, which you'll download next.
2. Download the Code for this Lesson
You have two options for the code in this lesson:
- You can download a zip file of the starter code here
- If you’re familiar with git, you can clone the entire git repository. This includes
//TODOinstructions and solution states for every step of building navigation for the app. To work with the git repository, use the example here: code README to learn how the repos are set up, and how to navigate the code and branches.
3. Note: Navigation Version
We have updated our Git repository to match the latest version of Navigation dependency. In case of ambiguity, refer to the updated Git repositories of this course.
You can refer to the Navigation framework homepage for the newest stable version of plugins.
4. Run the Starter Code
1. Open the starter code.
Open up Android Studio and instead of selecting Start a new Android Studio project, click Import project (Gradle, Eclipse ADT, etc.).
When opening the code, if you see pop-ups asking to update the gradle plugin, choose Don't remind me again for this project.
This pop-up occurs when the version of Android Studio that the code was written on is behind the version of Android Studio you're using. Since it's hard to future proof code, we generally recommend that you do not update the plugin. If you choose to update to a newer version, there is no guarantee that your code will work as expected, although it usually will. You can read more in the Troubleshooting Guide.
2. Run the code.
Before changing any of the code, make sure the starting code runs.
Now you're ready to start implementing navigation!